/** @format */

import Vue from "vue";
import App from "./App.vue";
import axios from "axios";
import router from "./router";
import store from "./store";
import Vant from "vant";
import "vant/lib/index.css";

Vue.use(Vant);

Vue.config.productionTip = false;

export async function tok() {
  await axios.get("/api/sso/init/sso?referer=");
  return await axios.get("/api/b2c/init/0-0/init");
}
export async function getData(url) {
  await axios.get("/api/sso/init/sso?referer=");
  return await axios.get(url);
}
export async function getsearch(page,type,name) {
  return await axios.get(
    `/api/b2c/product/0-0/newlist?keyword=${name}&pageNum=${page}&pageSize=10&productListSortType=`+type
  );
}
new Vue({ router, store, render: h => h(App) }).$mount("#app");
